package com.lyy.photovoltaic.service;

import com.alibaba.fastjson.JSONObject;
import com.lyy.photovoltaic.beans.Notice;
import com.lyy.photovoltaic.common.vo.ResultVO;

public interface NoticeService {
    //增加新闻公告信息
    public ResultVO addNotice(JSONObject jsonObject);
    //用户首页获取所有要显示的新闻公告
    public ResultVO allVisibleNotices();
    //分页查询新闻公告
    public ResultVO findNoticesByPages(int pageNum,int pageSize);
    public int VisibleNoticeCount();
    //根据主键查询信息
    public ResultVO findNoticeById(String nId);
    //管理员获取所欲公告信息
    public ResultVO allNotice();
    //管理员更改公告信息
    public ResultVO updateNotice(Notice notice);
    //根据主键删除公告选项
    public ResultVO deleteNoticeById(String nId);
}
